import { httpPost, httpGet } from '@/utils/fetch'

// 登录
export function login(params) {
    return httpPost({
        url: '/seller/Auth/login',
        method: 'POST',
        data: params
    })
}

// 短信-发送验证码
export function send(params) {
    return httpPost({
        url: '/api/sms/send',
        method: 'POST',
        data: params
    })
}

// 创建店铺
export function createStore(params) {
    return httpPost({
        url: '/store/createStore',
        method: 'POST',
        data: params
    })
}

// 店铺列表
export function getStoreListByUser(params) {
    return httpPost({
        url: '/store/getStoreListByUser',
        method: 'POST',
        data: params
    })
}

// 房间列表
export function getRoomListByStore(params) {
    return httpPost({
        url: '/room/getRoomListByStore',
        method: 'POST',
        data: params
    })
}

// 创建房间
export function createRoom(params) {
    return httpPost({
        url: '/room/createRoom',
        method: 'POST',
        data: params
    })
}

// 编辑房间
export function updateRoom(params) {
    return httpPost({
        url: '/room/updateRoom',
        method: 'POST',
        data: params
    })
}

// 房间详情
export function getRoomDetails(params) {
    return httpPost({
        url: '/room/getRoomDetails',
        method: 'POST',
        data: params
    })
}

// 上下架
export function roomPutAway(params) {
    return httpPost({
        url: '/room/roomPutAway',
        method: 'POST',
        data: params
    })
}

// 店铺相关类别
export function getStoreCategory(params) {
    return httpPost({
        url: '/store/getStoreCategory',
        method: 'POST',
        data: params
    })
}

// 静默登录
export function appletLogin(params) {
    return httpGet({
        url: '/login/appletLogin',
        method: 'GET',
        params
    })
}

//获取绑定关系 /gxe-saas-biz
export function getMyBindDetails(params) {
    return httpPost({
        url: '/appUser/getMyBindDetails',
        method: 'POST',
        data:params
    })
}


//获取设置用户电话
export function setUserPhone(params) {
    return httpPost({
        url: '/appUser/setUserPhone',
        method: 'POST',
        data:params
    })
}

//入驻类别
export function getSettleInTypeList(params) {
    return httpPost({
        url: '/settleIn/getSettleInTypeList',
        method: 'POST',
        data:params
    })
}


//查询全部店铺类型
export function getStoreTypeList(params) {
    return httpPost({
        url: '/store/getStoreTypeList',
        method: 'POST',
        data:params
    })
}

//退出登录
export function loginOut(params) {
    return httpPost({
        url: '/login/loginOut',
        method: 'POST',
        data:params
    })
}






